import { request } from "umi"

export let getData = (path: string) => {
    return request(path)
}

export let getSearch = (path: string, params: any) => {
    const { address, browser, device, engine, ip, os, url, userAgent } = params
    return request(path, { params: { address, browser, device, engine, ip, os, url, userAgent } })
}


export let postSetting = (path: string) => {
    return request(path,{
        method:"post"
    })
}